package wf.source.hrm;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import wf.source.hrm.domain.Sso;
import wf.source.hrm.util.AjaxResult;


@RequestMapping("/sso")
@FeignClient(value = "hrm-user",fallbackFactory = SsoClientFallbackFactory.class)
public interface SsoClient {
    //新增或修改
    @PutMapping
    AjaxResult addOrUpate(@RequestBody Sso sso);
    //删除
    @DeleteMapping(value="/{id}")
    AjaxResult delete(@PathVariable("id") Long id);

    //获取用户
    @GetMapping("/{id}")
    Sso get(@PathVariable("id")Long id);

}
